package com.mastercard.assets.web.util;

import java.util.Comparator;

import com.mastercard.assets.jpa.TblRole;

public class RoleComparator
	implements
		Comparator< TblRole >
{
	public int compare( TblRole o1 , TblRole o2 )
	{
		String n1 = o1.getNombre( ) ;
		String n2 = o2.getNombre( ) ;
		
		if( n1 == null )
			n1 = "" ;
		if( n2 == null )
			n2 = "" ;
		
		return n1.compareTo( n1 ) ;
	}
}
